package logger2.filter;

import logger2.LogRecord;
import logger2.environment.Environment;

public class AcceptAllFilter extends Filter {
	public AcceptAllFilter(Environment env) {
		super(env, "AcceptAll");
	}
	
	@Override
	public boolean accept(LogRecord record) {
		return true;
	}

	@Override
	public <T> T acceptVisitor(FilterVisitor<T> visitor) {
		return visitor.visitAcceptAllFilter();
	}
}
